package com.doublefish.doublefishrobot.ui.setting;

import android.util.Log;
import android.view.View;
import android.widget.TextView;

import com.doublefish.doublefishrobot.R;
import com.doublefish.doublefishrobot.base.BaseActivity;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 作者:dugaofeng on 2025/3/19 14:15
 *
 * 获取手机的主板的信息
 */
public class DeviceBoardInfoActivivty extends BaseActivity {

    @BindView(R.id.tv_title)
    TextView titleTV;

    @BindView(R.id.tv_manu)
    TextView manuTv;

    @BindView(R.id.tv_brand)
    TextView brandTv;


    @Override
    protected int getLayoutId() {
        return R.layout.activity_board_info;
    }

    @Override
    protected void initView() {

        //测试页面
        titleTV.setText("手机信息");

        String manufacturer = android.os.Build.MANUFACTURER;
        String brand = android.os.Build.BRAND;
        manuTv.setText(manufacturer);
        brandTv.setText(brand);

        Log.d("DeviceInfo", "Manufacturer: " + manufacturer);
        Log.d("DeviceInfo", "Brand: " + brand);

//        华为
//        D/DeviceInfo: Manufacturer: HUAWEI
//        D/DeviceInfo: Brand: HUAWEI
//        荣耀
//        D/DeviceInfo: Manufacturer: HUAWEI
//        D/DeviceInfo: Brand: HONOR
//        小米
//        D/DeviceInfo: Manufacturer: Xiaomi
//        D/DeviceInfo: Brand: Redmi

        //忽略电池优化
        manuTv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
            }
        });

        brandTv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initListener() {

    }
    @OnClick(R.id.tv_back)
    public void onBackClick() {
        finish();
    }
}
